package com.xzp.blog.entity.dto.form;

import com.xzp.blog.entity.About;

import java.util.Date;

public class AboutModifyForm {

    private Integer id;

    private String title;


    private Date gmtCreate;


    private Date gmtModified;

    private String introduction;


    private String mdMaterial;


    private String htmlMaterial;

    public AboutModifyForm(Integer id, String title, Date gmtCreate, Date gmtModified, String introduction, String mdMaterial, String htmlMaterial) {
        this.id = id;
        this.title = title;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.introduction = introduction;
        this.mdMaterial = mdMaterial;
        this.htmlMaterial = htmlMaterial;
    }

    public AboutModifyForm() {
    }

    public AboutModifyForm(About about) {
        this.id = about.getId();
        this.introduction = about.getIntroduction();
        this.title = about.getTitle();
        this.gmtCreate = about.getGmtCreate();
        this.gmtModified = about.getGmtModified();
        this.htmlMaterial = about.getHtmlMaterial();
        this.mdMaterial = about.getMdMaterial();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getMdMaterial() {
        return mdMaterial;
    }

    public void setMdMaterial(String mdMaterial) {
        this.mdMaterial = mdMaterial;
    }

    public String getHtmlMaterial() {
        return htmlMaterial;
    }

    public void setHtmlMaterial(String htmlMaterial) {
        this.htmlMaterial = htmlMaterial;
    }
}
